package com.zhengtoon.mctoon.conv.service.sdzc;

import java.util.List;

import com.zhengtoon.mctoon.conv.bean.sdzc.Feedback;
import com.zhengtoon.mctoon.conv.bean.sdzc.Letter;
import com.zhengtoon.mctoon.conv.bean.sdzc.Reply;
import com.zhengtoon.mctoon.conv.bean.sdzc.ReplyAttachment;
import com.zhengtoon.mctoon.conv.bean.ws.BaseLetter;

/**
 * 中科软系统 政风行风系统服务
 *
 * @author 144637
 */
public interface ZfhfSystemService {


    /**
     * 提交信件
     *
     * @param letter     letter
     * @param haveAttach 是否含有附件
     * @return boolean
     * @author 144637
     */
    boolean submitCommunityLetter(Letter letter, boolean haveAttach);

    /**
     * 获取信件列表
     *
     * @return BaseLetter
     * @author 144637
     */
    BaseLetter getCommunityLetterList();

    /**
     * 获取信件办理结果(回复)
     *
     * @param letterId 信件id
     * @return List<Reply>
     * @author 144637
     */
    List<Reply> getCommunityLetterReply(String letterId);

    /**
     * 获取信件办理结果附件
     *
     * @param replyId  replyId
     * @param attachId attachId
     * @return ReplyAttachment
     */
    ReplyAttachment getCommunityLetterReplyAttachment(String replyId, String attachId);

    /**
     * 提交评价
     *
     * @return boolean
     * @author 144637
     */
    boolean setCommunityLetterFeedbackInfo(Feedback feedback);
}
